package com.lagou.ModelTest.Second;
//NewPhone继承Phone
public class NewPhone extends Phone{
    @Override
    public void playGame(){
        System.out.println("NewPhone添加玩游戏的功能");
        System.out.println("所以我可以用"+getType()+"玩游戏啦!");
    }
    //无参构造
    public NewPhone() {}
    //有参构造
    public NewPhone(String type) {
        super(type);
    }
    @Override
    public void call(){
        super.call();
    }
}
